<template>
  <div class="config" >
     <div class="logo">宝甄</div>
     <div class="text">
      <p class="p1">欢迎来到宝甄~</p>
      <p class="p2">赶快登陆打开新世界吧</p>
     </div>
     <div class="btn">
      <button class="Btn" @click="toLogin">马上登录</button>
     </div>
   </div>
</template>
<script setup>
import { ref, watch } from "vue";

import { useRoute ,useRouter} from "vue-router";
const route = useRoute();
const router=useRouter();
const toLogin=()=>{
  router.push({
    name:"Login"
  })
}

</script>
<style scoped>
.config{
  display: flex;
  align-items: center;
  background-color:rgba(0, 0, 0, 0.7);
  width: 90vw;
  height: 18vw;
  position: fixed;
  bottom: 11vh;
  left: 5vw;
  border-radius: 2vh;
}
.logo{
  width: 15vw;
  height: 15vw;
  border-radius: 20vw;
  background-color: #FFC731;
  text-align: center;
  line-height: 15vw;
  font-weight: bolder;
  font-size: 1rem;
  margin-left: 1rem;
}
.text{
  margin-left: .5rem;
  flex:1;
}
.text .p1{
  color: #fff;
  font-size: 1.2rem;
}
.text .p2{
 color: rgba(255, 255, 255, 0.845);
}
.btn{
  /* flex:1; */
  margin-right: 1rem;
}
.Btn{
  background-color: #FFC731;
  display: block;
  width: 90px;
  height: 40px;
  border: none;
  font-weight: bold;
  border-radius: 40px;
  margin-left: .5rem;
}
</style>